CI: Force CONFIG_XEN_IBT in the buster-gcc-ibt test
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Sep 2022 13:02:13 +0000 (14:02 +0100)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 27 Sep 2022 23:51:19 +0000 (16:51 -0700)
buster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch
which is relevant to CONFIG_XEN_IBT in 4.17 and later.

Force it on, rather than having 50% of the jobs not testing what they're
supposed to be testing.

Fixes: 5d59421815d5 ("x86: Use control flow typechecking where possible")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
[stefano: minor code style improvement]
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
automation/gitlab-ci/build.yaml
automation/scripts/build

index a39ed72aac6d0a15a4d0f62948f8dcb0bd8050a9..ddc2234faf39f82eb511d0bd5e35d7ab40418818 100644 (file)
@@ -299,6 +299,8 @@ debian-buster-gcc-ibt:
   variables:
     CONTAINER: debian:buster-gcc-ibt
     RANDCONFIG: y
+    EXTRA_FIXED_RANDCONFIG: |
+      CONFIG_XEN_IBT=y
 
 debian-unstable-clang:
   extends: .clang-x86-64-build
index bcfa6838f0bb020b7e534ae0cc591ecea7d0a0f5..8c0882f3aa3397afbc93b2e0cb5b2435cbb8ce63 100755 (executable)
@@ -12,6 +12,12 @@ cc-ver()
 
 # random config or default config
 if [[ "${RANDCONFIG}" == "y" ]]; then
+
+    # Append job-specific fixed configuration
+    if [[ -n "${EXTRA_FIXED_RANDCONFIG}" ]]; then
+        echo "${EXTRA_FIXED_RANDCONFIG}" >> xen/tools/kconfig/allrandom.config
+    fi
+
     make -j$(nproc) -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig
     hypervisor_only="y"
 else